import request from '@/utils/request'

const prefix = "/api/exam"


/** 
 * 生成试卷
 */
function Create() {
	return request({
		url: prefix + '/create',
	})
}

/** 
 * 提交试卷
 */
function Submit(data) {
	return request({
		url: prefix + '/subExam',
		method: 'post',
		data
	})
}


/** 
 * 试卷详情
 */
function Result(id) {
	return request({
		url: prefix + '/result/' + id,
	})
}


export default {
	Create,
	Submit,
	Result
}